<?php namespace App\Admin\Orders\Shopping;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'orders';
    protected $primaryKey = 'id';

    public function delivers(){
        return $this->belongsTo('App\Admin\Logistics\Delivers\Model', 'deliver_id', 'id');
    }

    public function user(){
        return $this->belongsTo('App\Admin\User\User\Model', 'user_id', 'id');
    }

//    public function supplier(){
//        return $this->belongsTo('App\Admin\Supplier\Supplier\Model', 'supplier_id', 'id');
//    }
}